const routes = [
    {
        path: '/movie',
        component: () => import('../view/movie'),
        redirect: '/movie/_hot',
        // meta: { keepAlive: true },
        children: [
            {
                path: '_hot',
                component: () => import('../components/movie/movie_body_main'),


            },
            {
                path: '_cinema',
                component: () => import('../components/cinema/cinema'),

            },
            {
                path: '_soon',
                component: () => import('../components/soon/soon_body'),

            },
            {
                path: '_classic',
                component: () => import('../components/classic/classic_body'),

            },
        ]
    },
    {
        path: '/city_list',
        component: () => import('../components/cityList/city_list_main'),
        meta: { keepAlive: true }
    },
    {
        path: '/detail/:filmId',
        component: () => import('../components/detail/detail_body.vue')
    },
    {
        path: '/film/:filmId/cinames',
        component: () => import('../components/buy_ticket_cinemas/buy_ticket_cinemas_body')
    },
    {
        path: '/cinema/:cinemaId/film/:filmId',
        component: () => import('../components/cinema/cinema_two')
    },
    {
        path: '/cinema/:cinemaId/film',
        component: () => import('../components/cinema/cinema_two')
    },
    {
        path: '/user',
        component: () => import('../components/user/user_body'),
        meta: {
            requireLogin: true
        }
    },
    {
        path: '/user/setting',
        component: () => import('../components/user/user_setting'),
        meta: {
            requireLogin: true
        }
    },
    {
        path: '/user',
        component: () => import('../components/user/user_body'),
        meta: {
            requireLogin: true
        }
    },
    {
        path: '/login',
        component: () => import('../components/login/login_body')
    },
    {
        path: '/information',
        component: () => import('@/view/information'),
        meta: { keepAlive: true }

    },
    {
        path: '/video',
        component: () => import('@/view/video'),
        meta: { keepAlive: true }

    },
    {
        path: '/search',
        component: () => import('@/view/search'),
        meta: { keepAlive: true }
    },

    {
        path: '/',
        redirect: '/movie'
    }
]

export default routes